export class IPEndPoint {

    public static readonly MaxPort: number = 65535;
    public static readonly MinPort: number = 0;

    private readonly ip: string;
    private readonly port: number;

    constructor(ip: string, port: number) {
        this.ip = ip;
        this.port = port;
    }

    public get IP(): string {
        return this.ip;
    }

    public get Port(): number {
        return this.port;
    }

    public ToString(): string {
        return `${this.ip}:${this.port}`;
    }
}
